﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WucLogin.ascx.cs" Inherits="WucLogin" %>
<style type="text/css">


    .auto-style1 {
        height: 38px;
        width: 332px;
    }
    .auto-style2 {
        height: 38px;
        }
    .auto-style5 {
        width: 332px;
    }
    .auto-style4 {
        width: 333px;
        text-align: right;
    }
    </style>

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <table style="width: 100%; height: 364px;">
            <tr>
                <td colspan="3" style="text-align: center">
                    <asp:Label ID="Label1" runat="server" Font-Names="Impact" Font-Size="X-Large" Text="Login To The System"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="auto-style1" style="text-align: right">
                    <asp:Label ID="Label2" runat="server" Text="User Name:"></asp:Label>
                </td>
                <td class="auto-style2" colspan="2">
                    <asp:TextBox ID="txtUname" runat="server" style="margin-left: 0px" Width="141px"></asp:TextBox>
                    &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtUname" ErrorMessage="User Name Required " ForeColor="Red" Display="Dynamic">*</asp:RequiredFieldValidator>
                    &nbsp; 
                    <br />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtUname" Display="Dynamic" ErrorMessage="Invalid User Name , it Should String (example : Mahmoud) ." ForeColor="Red" ValidationExpression="[a-zA-Z]+"></asp:RegularExpressionValidator>
                    <br />
                </td>
            </tr>
            <tr>
                <td class="auto-style5" style="text-align: right">
                    <asp:Label ID="Label3" runat="server" Text="PassWord:"></asp:Label>
                </td>
                <td class="auto-style3" colspan="2">
                    <asp:TextBox ID="txtPass" runat="server" TextMode="Password" Width="144px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPass" ErrorMessage="Password Is Required " ForeColor="Red">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="auto-style5" style="text-align: right">
                    <asp:Label ID="Label5" runat="server" style="text-align: justify" Text="Center"></asp:Label>
                </td>
                <td class="auto-style3" colspan="2">
                    <asp:DropDownList ID="DDLCenter" runat="server" Width="151px">
                        <asp:ListItem>Cairo</asp:ListItem>
                        <asp:ListItem>Damanhour</asp:ListItem>
                        <asp:ListItem>Bani Swaf</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="auto-style4" colspan="2" style="text-align: right">
                    <asp:Label ID="Label4" runat="server" style="text-align: justify" Text="Profession:"></asp:Label>
                </td>
                <td>
                    <asp:RadioButtonList ID="RDoProfession" runat="server">
                        <asp:ListItem Selected="True">Administrator</asp:ListItem>
                        <asp:ListItem>Doctor</asp:ListItem>
                        <asp:ListItem>Analyser</asp:ListItem>
                        <asp:ListItem>Recieptionist</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td colspan="3" style="text-align: center">
                    <asp:Button ID="btnLogin" runat="server" OnClick="btnLogin_Click" Text="Login" Width="150px" />
                </td>
            </tr>
            <tr>
                <td colspan="3" style="text-align: center">
                    <asp:Label ID="lblMsg" runat="server" ForeColor="Red"></asp:Label>
                </td>
            </tr>
        </table>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" Width="843px" />
    </ContentTemplate>
</asp:UpdatePanel>


